package com.gl.goods.ui.main.mvp.me;

import com.gl.goods.base.BaseBean;
import com.gl.goods.base.BaseView;
import com.gl.goods.ui.login.bean.UserInfoBean;

import io.reactivex.Flowable;

/**
 * Time; 2020/3/15
 * Author: hmc
 * Description:
 */
public interface UserFragmentContract {
    interface Model {
        /**获取用户个人信息*/
        Flowable<UserInfoBean> getUserInfo();
        /**退出登录*/
        Flowable<BaseBean> logout();
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void showErrorMessage(String error_message);
        /**获取用户个人信息*/
        void getUserInfoSuccess(UserInfoBean userInfoBean);
        /**退出登录*/
        void logout();
    }

    interface Presenter {
        /**获取用户个人信息*/
        void getUserInfo();
        /**获取用户个人信息*/
        void logout();
    }
}
